<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use App\Repositories\SettingRepository;

class SettingController extends AdminController
{
	// 系统设置
	public function getIndex()
	{
		return view('admin.setting');
	} 

	// 保存和修改配置
	public function postIndex()
	{
		$input = Input::except('_token');

		Setting::set($input);

		return Response::json(array('success'=>'操作成功'));
	}
}
